﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IFClientDLL.Calc;
using IFServerDLL.Model;
using HCY.CTP.DBShangZheng;

namespace IFClientDLL.MyCalc.CalcCommand
{
    public class CalcCommand_Onehand : CalcCommand_Base
    {
        public CalcCommand_Onehand(ITryIF tryif):base(tryif)
        {
        }


        protected override int PlusTradeVolume(ICalc calc, MyIF myif, TradeOnHand trade)
        {
            return 0;
        }
        protected override int CloseTradeVolume(ICalc calc, MyIF myif, TradeOnHand trade)
        {
            return trade.SumALLVolume;
        }
        protected override int OpenNewVolume(ICalc calc, MyIF myif, MyEnumDirection direction)
        {
            return 1;
        }
       

        public override string CalcName
        {
            get { return "Only One Volume"; }
        }

        public override string CalcDescripte
        {
            get { return "仅1手"; }
        }
    }
}
